from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from coleman.customers.forms import CustomerForm
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'ecomerce_book.views.home', name='home'),
    # url(r'^ecomerce_book/', include('ecomerce_book.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    #product urls.
    url(r'^product/', include('coleman.products.urls')),
    
    (r'^accounts/', include('registration.backends.default.urls')),
    
    (r'^profiles/edit', 'profiles.views.edit_profile', {'form_class' : CustomerForm,}),
    (r'^profiles/create', 'profiles.views.create_profile', {'form_class' : CustomerForm,}),
    (r'^profiles/', include('profiles.urls')),
)
